package com.example.pharmacypick.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DrugDto {
    private int drugNum;
    private String drugName;
    private String drugFactory;
    private String drugSize;
    private Double drugPrice;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date drugCreateTime;

    private String drugDuration;
    private int drugStock;
    private int drugCategory;

    //当前页数
    private int pageNum;


    //页面大小
    private int pageSize;
}
